package com.antball.aaa.decorator;

/**
 * @Auther: huangsj
 * @Date: 2019/9/10 15:22
 * @Description:
 */
public abstract class CondimentDecorator extends Beverage {

    Beverage beverage;

    public CondimentDecorator(Beverage beverage){
        this.beverage = beverage;
    }


    @Override
    public double cost() {
        return beverage.cost()+getPrice();
    }



    @Override
    public abstract String getDescription();

    public abstract double getPrice();


}
